package com.esl.dto.admin;

import com.esl.model.admin.Resource;
import com.esl.model.admin.User;

public class Resource_Dto {
	private String name;
	private String url;
	private String kind;
	private String brief;

	public Resource toResource(User user) {
		return new Resource(user, name, url, kind, brief);
	}

	/*--------------------------------*/

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getKind() {
		return kind;
	}

	public void setKind(String kind) {
		this.kind = kind;
	}

	public String getBrief() {
		return brief;
	}

	public void setBrief(String brief) {
		this.brief = brief;
	}

}
